package com.hotel.daos;

import com.hotel.entitys.Dept;
import com.hotel.entitys.Room;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chend
 * @time 2022/02/28 11:44:02
 */
@Repository
public interface RoomMapper {
    public List<Room> selAllRoom();
    public Integer setStatus(Integer room_id,Integer room_status);
    public int updRoomStatus(@Param("room_id") Integer room_id);

    public List<Room> selRoomByNameorPhone(@Param("keyword") String keyword);

    public Room selRoomById(@Param("rid") Integer room_id);
    public List<Room> selectAllRooms(@Param("typeCheck") String typeCheck,@Param("statusCheck") String statusCheck);

    public int updateCleanRoom(Integer room_id);
}
